#!/bin/sh 
echo "ttyd init fail" >/data/ttyd_init.log
cd data
tar -xvf ttyd_oh_install.tar
export LD_LIBRARY_PATH=/data/ttyd_oh_install:$LD_LIBRARY_PATH
echo "ttyd init fail" >/data/ttyd_init.log
nohup ./ttyd_oh_install/ttyd -p 7681 --writable -t disableResizeOverlay=true -w / /bin/sh &
echo "ttyd init success" >/data/ttyd_init.log